<?php

class DMenu {
    public function renderDMenu($items = null) {
        if ($items == null)
            return "";

        $render = '';
        $render .= '<div class="DRowElem noborder aligncenter">';
        foreach ($items as $label => $urls) {
            $concanateUrl = "";
            $concanateUrl = array(Yii::app()->controller->id . "/" . $urls);// get appropriate url instead of just action only (may cause misleading)

            $render .= CHtml::link('<input class="blueBtn mr10 ml10" type="button" value="' . $label . '">', $concanateUrl);
        }
        $render .= '</div>';

        return $render;
    }

}

?>